<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
	 <style>
		.ui_lt, .ui_rt, .ui_lb, .ui_rb, .ui_t, .ui_b {
		    background: #065ba5!important;
		}
		input.ui_state_highlight {
			background: #065ba5 none repeat scroll 0 0;
			border: 1px solid #065ba5;
		
		}
	</style>
  <title>TRADER</title>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  <script type="text/javascript">
  //编写自定义JS代码
  </script>
 </head>
 <body>
		<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="${action}" tiptype="6">
					<input id="id" name="id" type="hidden" value="${traderPage.id}"/>
		<table style="width: 99%;" cellpadding="0" cellspacing="1" class="formtable">
					<tr>
						<td align="right">
							<label class="Validform_label">
								交易商全称:
							</label>
						</td>
						<td class="value">
						    <input id="fullname" name="fullname" type="text" maxlength="150" style="width: 150px"  datatype="*"  ignore="checked"  value='${traderPage.fullname}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">交易商全称</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								交易商简称:
							</label>
						</td>
						<td class="value">
						    <input id="abbrname" name="abbrname" type="text" maxlength="50" style="width: 150px"  ignore="ignore"  value='${traderPage.abbrname}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">交易商简称</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								法定代表人:
							</label>
						</td>
						<td class="value">
						    <input id="legallyar" name="legallyar" type="text" maxlength="50" style="width: 150px"  ignore="ignore"  value='${traderPage.legallyar}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">法定代表人</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								中文通讯地址:
							</label>
						</td>
						<td class="value">
						    <input id="address" name="address" type="text" maxlength="100" style="width: 150px"  ignore="ignore"  value='${traderPage.address}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">中文通讯地址</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								行业编号:
							</label>
						</td>
						<td class="value">
									<t:dictSelect field="industryid" type="list"  datatype="*"  typeGroupCode="HANGY"   defaultVal="${traderPage.industryid}" hasLabel="false"  title="行业编号" ></t:dictSelect>     
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">行业编号</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								会员级别:
							</label>
						</td>
						<td class="value">
									<t:dictSelect field="tradertypeid" type="list"  datatype="*"  typeGroupCode="USERTRADERTYPE"   defaultVal="${traderPage.tradertypeid}" hasLabel="false"  title="会员级别" ></t:dictSelect>     
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">会员级别</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								所属地区:
							</label>
						</td>
						<td class="value">
							<input id="regioncode" name="regioncode" type="text" style="width:150px;display:none;" class="searchbox-inputtext"  datatype="*"  ignore="checked" readonly="readonly" onclick="popupClick(this,'regioncode','regioncode','region_select')" value='${traderPage.regioncode}'/>
							<input id="regioncodedicname" name="regioncodedicname" type="text" style="width: 150px" class="searchbox-inputtext"  datatype="*"  ignore="checked" readonly="readonly"  onclick="popupClick($('#regioncode'),'regioncode,regionname','regioncode,regioncodedicname','region_select')" value='${traderPage.regioncodeDicName}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">所属地区</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								企业联系人:
							</label>
						</td>
						<td class="value">
						    <input id="contacts" name="contacts" type="text" maxlength="50" style="width: 150px"  ignore="ignore"  value='${traderPage.contacts}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">企业联系人</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								办公电话:
							</label>
						</td>
						<td class="value">
						    <input id="officephone" name="officephone" type="text" maxlength="20" style="width: 150px"  ignore="ignore"  value='${traderPage.officephone}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">办公电话</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								办公手机:
							</label>
						</td>
						<td class="value">
						    <input id="mobilephone" name="mobilephone" type="text" maxlength="20" style="width: 150px"  ignore="ignore"  value='${traderPage.mobilephone}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">办公手机</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								传真:
							</label>
						</td>
						<td class="value">
						    <input id="fax" name="fax" type="text" maxlength="20" style="width: 150px"  ignore="ignore"  value='${traderPage.fax}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">传真</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								企业网址:
							</label>
						</td>
						<td class="value">
						    <input id="website" name="website" type="text" maxlength="100" style="width: 150px"  ignore="ignore"  value='${traderPage.website}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">企业网址</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								企业简介:
							</label>
						</td>
						<td class="value">
						    <input id="introduce" name="introduce" type="text" maxlength="1000" style="width: 150px"  ignore="ignore"  value='${traderPage.introduce}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">企业简介</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								认证申请状态:
							</label>
						</td>
						<td class="value">
									<t:dictSelect field="traderauthstatus" type="list"  datatype="*"  typeGroupCode="TRADERAUTHSTATUS"   defaultVal="${traderPage.traderauthstatus}" hasLabel="false"  title="认证申请状态" ></t:dictSelect>     
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">认证申请状态</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								注册时间:
							</label>
						</td>
						<td class="value">
									   <input id="addtime" name="addtime" type="text" style="width: 150px" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"  datatype="*"  ignore="checked"  value='<fmt:formatDate value='${traderPage.addtime}' type="date" pattern="yyyy-MM-dd hh:mm:ss"/>'/>
						      	
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">注册时间</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								企业编码:
							</label>
						</td>
						<td class="value">
						    <input id="tradecode" name="tradecode" type="text" maxlength="10" style="width: 150px"  ignore="ignore"  value='${traderPage.tradecode}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">企业编码</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								结算等级:
							</label>
						</td>
						<td class="value">
									<t:dictSelect field="gradeid" type="list"  datatype="n"  typeGroupCode="SettleLv"   defaultVal="${traderPage.gradeid}" hasLabel="false"  title="结算等级" ></t:dictSelect>     
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">结算等级</label>
						</td>
						<!-- <td align="right">
							<label class="Validform_label">
								交易商英文全称:
							</label>
						</td>
						<td class="value">
						    <input id="fullnameEn" name="fullnameEn" type="text" maxlength="200" style="width: 150px"  ignore="ignore"  value='${traderPage.fullnameEn}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">交易商英文全称</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								英文通讯地址:
							</label>
						</td>
						<td class="value">
						    <input id="addressEn" name="addressEn" type="text" maxlength="500" style="width: 150px"  ignore="ignore"  value='${traderPage.addressEn}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">英文通讯地址</label>
						</td> -->
						<td align="right">
							<label class="Validform_label">
								身份证号:
							</label>
						</td>
						<td class="value">
						    <input id="creditnumber" name="creditnumber" type="text" maxlength="200" style="width: 150px"  ignore="ignore"  value='${traderPage.creditnumber}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">身份证号</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								营业执照号:
							</label>
						</td>
						<td class="value">
						    <input id="busliccode" name="busliccode" type="text" maxlength="50" style="width: 150px"  ignore="ignore"  value='${traderPage.busliccode}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">营业执照号</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								税务登记证号:
							</label>
						</td>
						<td class="value">
						    <input id="taxregcode" name="taxregcode" type="text" maxlength="50" style="width: 150px"  ignore="ignore"  value='${traderPage.taxregcode}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">税务登记证号</label>
						</td>
					</tr>
					<c:if test="${not empty listAttr}">
					<c:forEach items="${listAttr}" var="attr">
						<%int a = 0; a = a + 1;%>
						<tr class="forVerify" >
							<td align="right">
								<label class="Validform_label">
									${attr.attrname}:
								</label>
							</td>
							<td class="value" colspan="3">
							<c:if test="${attr.fieldjee==1}">														
								<t:webUploaderOnline name="field1" displayTxt="false" auto="true" buttonText="选择图片" buttonStyle="btn-blue btn-S" type="image" fileNumLimit="1" pathValues="${traderPage.field1}"></t:webUploaderOnline>
							</c:if>
							<c:if test="${attr.fieldjee==2}">
								<t:webUploaderOnline name="field2" url="filedeal" displayTxt="false" auto="true" buttonText="选择图片" buttonStyle="btn-blue btn-S" type="image" fileNumLimit="1" pathValues="${traderPage.field2}"></t:webUploaderOnline>
							</c:if>
							<c:if test="${attr.fieldjee==3}">
								<t:webUploaderOnline name="field3" url="filedeal" displayTxt="false" auto="true" buttonText="选择图片" buttonStyle="btn-blue btn-S" type="image" fileNumLimit="1" pathValues="${traderPage.field3}"></t:webUploaderOnline>
							</c:if>
							<c:if test="${attr.fieldjee==4}">
								<t:webUploaderOnline name="field4" url="filedeal" displayTxt="false" auto="true" buttonText="选择图片" buttonStyle="btn-blue btn-S" type="image" fileNumLimit="1" pathValues="${traderPage.field4}"></t:webUploaderOnline>
							</c:if>
							<c:if test="${attr.fieldjee==5}">
								<t:webUploaderOnline name="field5" url="filedeal" displayTxt="false" auto="true" buttonText="选择图片" buttonStyle="btn-blue btn-S" type="image" fileNumLimit="1" pathValues="${traderPage.field5}"></t:webUploaderOnline>
							</c:if>
							<c:if test="${attr.fieldjee==6}">
								<t:webUploaderOnline name="field6" url="filedeal" displayTxt="false" auto="true" buttonText="选择图片" buttonStyle="btn-blue btn-S" type="image" fileNumLimit="1" pathValues="${traderPage.field6}"></t:webUploaderOnline>
							</c:if>
							<c:if test="${attr.fieldjee==7}">
								<t:webUploaderOnline name="field7" url="filedeal" displayTxt="false" auto="true" buttonText="选择图片" buttonStyle="btn-blue btn-S" type="image" fileNumLimit="1" pathValues="${traderPage.field7}"></t:webUploaderOnline>
							</c:if>
							<c:if test="${attr.fieldjee==8}">
								<t:webUploaderOnline name="field8" url="filedeal" displayTxt="false" auto="true" buttonText="选择图片" buttonStyle="btn-blue btn-S" type="image" fileNumLimit="1" pathValues="${traderPage.field8}"></t:webUploaderOnline>
							</c:if>
							<c:if test="${attr.fieldjee==9}">
								<t:webUploaderOnline name="field9" url="filedeal" displayTxt="false" auto="true" buttonText="选择图片" buttonStyle="btn-blue btn-S" type="image" fileNumLimit="1" pathValues="${traderPage.field9}"></t:webUploaderOnline>
							</c:if>
							<c:if test="${attr.fieldjee==10}">
								<t:webUploaderOnline name="field10" url="filedeal" displayTxt="false" auto="true" buttonText="选择图片" buttonStyle="btn-blue btn-S" type="image" fileNumLimit="1" pathValues="${traderPage.field10}"></t:webUploaderOnline>
							</c:if>
							
								<span class="Validform_checktip"></span>
								<label class="Validform_label" style="display: none;">${attr.attrname }</label>
							</td>
						</tr>
						
					</c:forEach>
					</c:if>
					<!--<tr class="forVerify" style="display:none;">
						<td align="right">
							<label class="Validform_label">
								营业执照:
							</label>
						</td>
						<td class="value" colspan="3">
						<t:webUploaderOnline name="field1" url="filedeal" displayTxt="false" auto="true" buttonText="选择图片" buttonStyle="btn-blue btn-S" type="image" fileNumLimit="1" pathValues="${traderPage.field1}"></t:webUploaderOnline>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">营业执照</label>
						</td>
					</tr>
					
					--><!-- <tr class="forVerify" style="display:none;">
						<td align="right">
							<label class="Validform_label">
								驾照:
							</label>
						</td>
						<td class="value" colspan="3">
			<t:webUploaderOnline name="field2" url="filedeal" displayTxt="false" auto="true" buttonText="选择图片" buttonStyle="btn-blue btn-S" type="image" fileNumLimit="1" pathValues="${traderPage.field2}"></t:webUploaderOnline>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">驾照</label>
						</td>
					</tr> -->
			</table>
			<table id="tabVerify" style="margin-top:10px;width: 600px;display:none;" cellpadding="0" cellspacing="1" class="formtable">
				<input id="verifyflag" name="verifyflag" type="hidden" value="false"/>
				<tr>
						<td align="right">
							<label class="Validform_label">
								审核意见:
							</label>
						</td>
						<td class="value" >
						  	<textarea id="verifynote" name="verifynote" style="height:auto;width:480px;" rows="6" ignore="ignore" ></textarea>
						</td>
					</tr>
			</table>
		</t:formvalid>
 </body>
